 /*
 * Copyright 2009-2010 by glorial.,
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of glorial. ("Confidential Information").
 */
package com.igs.vo;

import java.util.ArrayList;
import java.util.List;

/**
 * @FileName	: ContractInfos.java
 * @Project		: IGS
 * @Date		: 2009. 07. 06
 * @Author		: glorial
 * @Desc		:
 * @history     :
 */
public class ContractInfos {
	private List contractInfos = null;
	private ContractInfo orderInfo = null;
	
	public List getContractInfo() {
		return contractInfos;
	}
	
	public ContractInfo getContractInfo(int index) {
		if(this.contractInfos == null){
			return null;
		}else{
			if(this.getSize() >= index){
	            return (ContractInfo)contractInfos.get(index);
			}else{
	            return null;
			}
		}
	}
	
	public void setContractInfo(ContractInfo contractInfo){
		if(this.contractInfos == null){
			this.contractInfos = new ArrayList();
		}
		this.contractInfos.add(this.contractInfos.size(), contractInfo);
	}
	
	public int getSize(){
		if(this.contractInfos == null){
			return 0;
		}else{
			return this.contractInfos.size();
		}
	}

	public ContractInfo getOrderInfo() {
		return orderInfo;
	}

	public void setOrderInfo(ContractInfo orderInfo) {
		this.orderInfo = orderInfo;
	}
	
}
